import Vue from 'vue';
import VueRouter, { RouteConfig } from 'vue-router';
import Home from '../views/Home.vue';

Vue.use(VueRouter);

const routes: Array<RouteConfig> = [
  {
    path: '/person',
    name: 'Home',
    component: Home
  },
  {
    path: '/label',
    name: 'Label',
    component: () => import('@/components/emotional/lab1.vue')
  },
  {
    path: '/warn',
    name: 'EmotionalWarn',
    component: () => import('../views/EmotionalWarn.vue')
  }
];

const router = new VueRouter({
  mode: 'history',
  base: 'emo',
  routes
});

export default router;
